/*    */ package org.poebot.hal;
/*    */ 
/*    */ import java.io.Serializable;
/*    */ 
/*    */ public class Quad
/*    */   implements Serializable
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   private String[] tokens;
/* 49 */   private boolean canStart = false;
/* 50 */   private boolean canEnd = false;
/*    */ 
/*    */   public Quad(String s1, String s2, String s3, String s4)
/*    */   {
/* 10 */     this.tokens = new String[] { s1, s2, s3, s4 };
/*    */   }
/*    */ 
/*    */   public String getToken(int index) {
/* 14 */     return this.tokens[index];
/*    */   }
/*    */ 
/*    */   public void setCanStart(boolean flag) {
/* 18 */     this.canStart = flag;
/*    */   }
/*    */ 
/*    */   public void setCanEnd(boolean flag) {
/* 22 */     this.canEnd = flag;
/*    */   }
/*    */ 
/*    */   public boolean canStart() {
/* 26 */     return this.canStart;
/*    */   }
/*    */ 
/*    */   public boolean canEnd() {
/* 30 */     return this.canEnd;
/*    */   }
/*    */ 
/*    */   public int hashCode() {
/* 34 */     return this.tokens[0].hashCode() + 
/* 35 */       this.tokens[1].hashCode() + 
/* 36 */       this.tokens[2].hashCode() + 
/* 37 */       this.tokens[3].hashCode();
/*    */   }
/*    */ 
/*    */   public boolean equals(Object o) {
/* 41 */     Quad other = (Quad)o;
/*    */ 
/* 45 */     return (other.tokens[0].equals(this.tokens[0])) && 
/* 43 */       (other.tokens[1].equals(this.tokens[1])) && 
/* 44 */       (other.tokens[2].equals(this.tokens[2])) && 
/* 45 */       (other.tokens[3].equals(this.tokens[3]));
/*    */   }
/*    */ }

/* Location:           C:\workspace\dognuts\dognuts\dognuts.jar
 * Qualified Name:     org.dognuts.hal.Quad
 * JD-Core Version:    0.6.0
 */